package com.bai.edu.service;

import com.bai.edu.entity.Chapter;
import com.bai.edu.entity.chapter.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author bai
 * @since 2023-07-25
 */
public interface ChapterService extends IService<Chapter> {

    //课程大纲列表
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    //删除章节
    boolean removeChapter(String chapterId);

    void removeChaptByCourseId(String courseId);
}
